import request from "@/utils/request";


export default{
    getRoleList(){
        return request({
            url:'/manage/role/list',
            method:'get'
        })
    },
    add(name){
        return request({
            url:'/manage/role/add',
            method:'post',
            data:{
                name
            }
        })
    },
    update (role) {
        return request({
            url:'/manage/role/update',
            method:'post',
            data:role
        })
    }
}